from django.conf.urls import patterns, include, url
from django.contrib import admin
from blog import views

urlpatterns = patterns('',
                       # Examples:
                       # url(r'^$', 'mysite.views.home', name='home'),
                       # url(r'^blog/', include('blog.urls')),

                       url(r'^$', views.post_list, name='post_list'),
                       url(r'^(?P<post_id>\d)/$',
                           views.post_detail, name='post_detail'),
                       url(r'^admin/', include(admin.site.urls)),
                       )
